<template>
	<view class="pageTitle">
		<view class="pageTitle_top">
			{{name}}
		</view>
		<view class="pageTitle_line">
			
		</view>
		<!-- 导航 -->
		<view class="pageTitle_navBar display_flex" v-if="navBarArr&&navBarArr.length>0">
			<view class="pageTitle_navBar_item display_flex" v-for="(item,index) in navBarArr" :key="index">
				<view class="pageTitle_navBar_item_name text_overflow" v-if="item.id!=3">
					{{item.name}}
				</view>
				<view class="pageTitle_navBar_item_name1 text_overflow" v-if="item.id==3">
					{{item.name}}
				</view>
				<view class="pageTitle_navBar_item_rightIcon" v-if="index!=navBarArr.length-1">
					<image src="@/static/rightIcon.png" class="pageTitle_navBar_item_rightIcon_img"></image>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		name: 'pageTitle',
		components: {

		},
		props: {
           name:{
			   type:String,
			   default:''
		   },
		   navBarArr:{
			   type:Array,
			   default:[]
		   }
		},
		data() {
			return {
				
			};
		},
		mounted() {

			// #ifdef H5

			// #endif
		},
		methods: {

		}
	};
</script>

<style scoped lang="scss">
	.pageTitle{
		&_top{
			width: 100%;
			height: 106rpx;
			background-image: url("../../static/bg_top.png");
			background-size: 100% 100%;
			font-size:72rpx;
			line-height: 106rpx;
			text-align: center;
			font-weight:700;
			color:rgba(0, 0, 0, 1);
		}
		&_line{
			width:4rpx;
			height:64rpx;
			background:rgba(234, 11, 42, 1);
			display: block;
			margin:16rpx auto;
		}
		&_navBar{
			padding-left:32rpx;
			&_item{
				&_name{
					font-size:32rpx;
					max-width:250rpx;
					
				}
				&_name1{
					font-size:32rpx;
					max-width:250rpx;
				}
				&_rightIcon{
					margin:8rpx;
					&_img{
						width:32rpx;
						height:32rpx;
						display: block;
					}
				}
			}
		}
		
	}

</style>